package com.codeczx.pageradapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;

import java.util.List;

/**
 * Created by win10 on 2017/7/28.
 */

public class MyPagerAdapter extends FragmentPagerAdapter {

    private List<BlankFragment> mList;

    public MyPagerAdapter(FragmentManager fm,List<BlankFragment> list) {
        super(fm);
        mList = list;
    }

    @Override
    public int getCount() {
        return mList.size();
    }

    @Override
    public Fragment getItem(int position) {
        return mList.get(position);
    }

}
